package com.test001.util;

public class Compare {
	public static <T extends Comparable<T>> T compare(T t1,T t2){
		if(t1.compareTo(t2)>0){
			return t1;
		}
		return t2;
	}
//	public static <T extends Comparable<T>,V extends Comparable<V>,Z extends Comparable<Z>> Z  compare(T t,V v){
//		if(t.compareTo(v)>0){
//			return t;
//		}
//		return v;
//	}
}
